package main

import (
	"fmt"
)

func main() {
	sum := 0
	for i := 1; i < 28123; i++ {
		pos := false
		for j := 12; j < i; j++ {
			if isAbundant(j) && isAbundant(i-j) {
				pos = true
				break
			}
		}
		if !pos {
			sum += i
		}
	}
	fmt.Println(sum)
}

func isAbundant(num int) bool {
	n := num
	prod := 1
	for k := 2; k*k <= n; k++ {
		p := 1
		for n%k == 0 {
			p = p*k + 1
			n /= k
		}
		prod *= p
	}
	if n > 1 {
		prod *= 1 + n
	}
	return prod > 2*num
}
